package com.acorn.community.entity.user;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 用户账户
 *
 * @author tianshiwei
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("user_account")
public class UserAccountEntity extends Model<UserAccountEntity> {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Long userId;

    private Long balance;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
